{include file="public/layout.htm" /}
<script type="text/javascript" src="__SKIN__/js/clipboard.min.js"></script>
<body class="back-c">
    <div class="ey-content">
        <div class="ey-header">
            <div class="ey-header-status">
                <div class="header-status-l">
                    <a href="{:weapp_url('Mbackend/Mbackend/index')}"><i class="iconfont icon-left"></i></a>
                </div>
                <div class="header-status-m">
                    订单管理
                </div>
                <div class="header-status-r">
                    <div class="choose">
                        <a href="javascript:void(0);" onclick="openFilter();">筛选</a>
                        <!-- <i class="iconfont icon-shaixuan color-tip"></i> -->
                    </div>
                </div>
            </div>
            <div class="tab-block-lin-height"></div>
            <div class="tab-block order-tab-block">
                <div class="scroll tab-wrap">
                    <div class="ey-scroll-view">
                        <div class="ey-scroll-view-x">
                            <div class="ey-scroll-view-content">
                                <a href='{:weapp_url("Mbackend/Shop/index")}' class='tab-item {if condition="!$Request.param.order_status"}active{/if}'> 全部 </a>
                                <a href='{:weapp_url("Mbackend/Shop/index", ["order_status"=>10])}' class='tab-item {eq name="$Request.param.order_status" value="10"}active{/eq}'> 待付款 </a>
                                <a href='{:weapp_url("Mbackend/Shop/index", ["order_status"=>1])}' class='tab-item {eq name="$Request.param.order_status" value="1"}active{/eq}'> 待发货 </a>
                                <a href='{:weapp_url("Mbackend/Shop/index", ["order_status"=>2])}' class='tab-item {eq name="$Request.param.order_status" value="2"}active{/eq}'> 已发货 </a>
                                <a href='{:weapp_url("Mbackend/Shop/index", ["order_status"=>3])}' class='tab-item {eq name="$Request.param.order_status" value="3"}active{/eq}'> 已完成 </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="ey-header-lin-height"></div>
        <div class="order-list-wrap">
            <div class="ey-drawer screen-wrap ey-drawer-visible ey-drawer-right" id="openFilter" style="display: none;">
                <div class="ey-drawer-mask" onclick="closeFilter();"></div>
                <div class="ey-drawer-content">
                    <div class="title color-tip">
                        <div class="title-fl">筛选</div> 
                        <div onclick="closeFilter();"><i class="iconfont icon-guanbi"></i></div>
                    </div>
                    <div class="ey-scroll-con">
                        <div class="ey-scroll-view" style="overflow: auto;">
                            <div class="ey-scroll-view-content">
                                <div class="search-wrap">
                                    <div class="search-input-inner">
                                    <form action="{:weapp_url('Mbackend/Shop/index')}" method="get" onsubmit="layerLoading();" style="display: unset;">
                                        {$searchform.hidden|default=''}
                                        <div class="ey-input-group">
                                            <input type="text" class="ey-input-inner" name="order_code" id="keywords" value="{$Request.param.order_code}" placeholder="搜索订单号或商品名称...">
                                            <div class="ey-input-group-append">
                                                <button type="submit" class="ey-button"> <i class="iconfont icon-sousuo"></i> </button>
                                            </div>
                                        </div>
                                    </form>
                                    </div>
                                </div>
                                <form id="formFilter" action="{:weapp_url('Mbackend/Shop/index')}" method="get" onsubmit="layerLoading();" style="display: unset;">
                                {$searchform.hidden|default=''}
                                <input type="hidden" id="pay_name" name="pay_name" value="{$Request.param.pay_name|default=''}">
                                <input type="hidden" id="order_status" name="order_status" value="{$Request.param.order_status|default=''}">
                                <input type="hidden" id="order_terminal" name="order_terminal" value="{$Request.param.order_terminal|default=''}">
                                <input type="hidden" id="contains_virtual" name="contains_virtual" value="{$Request.param.contains_virtual|default=''}">
                                <div class="item-wrap">
                                    <div class="label">
                                        <span>支付方式</span>
                                    </div>
                                    <div class="list">
                                        <span class='{empty name="$pay_name"}on{/empty}' onclick="unifiedSwitch(this, 'pay_name', '');">全部</span>
                                        <span class='{eq name="$pay_name" value="admin_pay"}on{/eq}' onclick="unifiedSwitch(this, 'pay_name', 'admin_pay');">后台支付</span>
                                        <span class='{eq name="$pay_name" value="balance"}on{/eq}' onclick="unifiedSwitch(this, 'pay_name', 'balance');">余额支付</span>
                                        <span class='{eq name="$pay_name" value="wechat"}on{/eq}' onclick="unifiedSwitch(this, 'pay_name', 'wechat');">微信支付</span>
                                        <span class='{eq name="$pay_name" value="tikTokPay"}on{/eq}' onclick="unifiedSwitch(this, 'pay_name', 'tikTokPay');">抖音支付</span>
                                        <!-- {eq name="$openAliPay" value="0"}
                                        <span class='{eq name="$pay_name" value="alipay"}on{/eq}' onclick="unifiedSwitch(this, 'pay_name', 'alipay');">支付宝支付</span>
                                        {/eq} -->
                                    </div>
                                </div>
                                <div class="item-wrap">
                                    <div class="label">
                                        <span>订单来源</span>
                                    </div>
                                    <div class="list">
                                        <span class='{empty name="$order_terminal"}on{/empty}' onclick="unifiedSwitch(this, 'order_terminal', 0);">全部</span>
                                        <span class='{eq name="$order_terminal" value="2"}on{/eq}' onclick="unifiedSwitch(this, 'order_terminal', 2);">H5</span>
                                        <span class='{eq name="$order_terminal" value="3"}on{/eq}' onclick="unifiedSwitch(this, 'order_terminal', 3);">微信小程序</span>
                                        <span class='{eq name="$order_terminal" value="9"}on{/eq}' onclick="unifiedSwitch(this, 'order_terminal', 9);">抖音小程序</span>
                                        <span class='{eq name="$order_terminal" value="1"}on{/eq}' onclick="unifiedSwitch(this, 'order_terminal', 1);">PC</span>
                                        <!-- <span class='{eq name="$order_terminal" value="10"}on{/eq}' onclick="unifiedSwitch(this, 'order_terminal', 10);">百度小程序</span> -->
                                    </div>
                                </div>
                                <div class="item-wrap">
                                    <div class="label"> <span>下单时间</span> </div>
                                    <div class="value-wrap">
                                        <div class="picker">
                                            <div class="ey-input">
                                                <input type="text" name="add_time_begin" id="add_time_begin" autocomplete="off" value="{$Request.param.add_time_begin}" placeholder="起始日期" style="text-align: right; width: 80px;margin-right: 5px;border: none;"/>
                                            </div>
                                        </div>
                                        <div class="h-line"></div>
                                        <div class="picker">
                                            <div class="ey-input">
                                                <input type="text" name="add_time_end" id="add_time_end" autocomplete="off" value="{$Request.param.add_time_end}" placeholder="结束日期" style="width: 80px;margin-left: 5px;border: none;"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div class="footer">
                        <button class="" type="default" onclick="unifiedJump(this);" data-url="{:weapp_url('Mbackend/Shop/index', ['order_status'=>$Request.param.order_status])}">重置</button>
                        <button class="" type="primary" onclick="submitFilter();">确定</button>
                    </div>
                </div>
            </div>

            <div class="mescroll-ey-warp list-wrap">
                <div class="mescroll-ey mescroll-ey-fixed list-order">
                    <div class="ey-scroll-view">
                        <div class="ey-scroll-view-content">
                            <div class="mescroll-ey-content">
                                {empty name="list"}
                                <div class="null-data-con">
                                    <div class="blank"></div>
                                    <div class="null-data-box">
                                        <div class="null-data">
                                            <img src="__WEAPP_TEMPLATE__/skin/images/null-data.png">
                                        </div>
                                    </div>
                                </div>
                                {else/}
                                <!-- 列表数据 -->
                                {include file="shop/order_list.htm" /}
                                <span id="unifiedAjaxAppendList"></span>
                                {/empty}
                            </div>
                            <!-- 列表分页 -->
                            {include file="public/page.htm" /}
                        </div>
                    </div>
                </div>
            </div>
            <div class="blank"></div>
        </div>
    </div>
    <script type="text/javascript" src="__WEAPP_TEMPLATE__/skin/js/order.js?v={$weappInfo.version|default='v1.0.10'}"></script>
</body>
{include file="public/footer.htm" /}
